/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2021-12-06 17:13:31
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-01-07 17:05:29
 */
import request from '@/utils/request'

// 查询证书借还列表
export function listCertUse(query) {
  return request({
    url: '/cert/certUse/list',
    method: 'get',
    params: query
  })
}

// 查询证书借还详细
export function getCertUse(id) {
  return request({
    url: '/cert/certUse/' + id,
    method: 'get'
  })
}

// 新增证书借还
export function addCertUse(data) {
  return request({
    url: '/cert/certUse',
    method: 'post',
    data: data
  })
}

// 修改证书借还
export function updateCertUse(data) {
  return request({
    url: '/cert/certUse',
    method: 'put',
    data: data
  })
}

// 删除证书借还
export function delCertUse(id) {
  return request({
    url: '/cert/certUse/' + id,
    method: 'delete'
  })
}

// 导出证书借还
export function exportCertUse(query) {
  return request({
    url: '/cert/certUse/export',
    method: 'get',
    params: query
  })
}

// 更换负责人
export function changeDirector(query) {
  return request({
    url: '/cert/certUse/changeDirector',
    method: 'get',
    params: query
  })
}
